package com.suyuan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class PigIn implements Serializable {
    private Integer gid;

    private Integer purGid;

    private Integer areAreaid;

    private Float inweight;

    private String weightunit;

    private String grade;

    private Date intime;

    private Integer comGid;

    private String receivername;

    private Integer comGid2;

    private String supplyname;

    private String supplytel;

    private String buyplace;

    private String buysn;

    private String note;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getPurGid() {
        return purGid;
    }

    public void setPurGid(Integer purGid) {
        this.purGid = purGid;
    }

    public Integer getAreAreaid() {
        return areAreaid;
    }

    public void setAreAreaid(Integer areAreaid) {
        this.areAreaid = areAreaid;
    }

    public Float getInweight() {
        return inweight;
    }

    public void setInweight(Float inweight) {
        this.inweight = inweight;
    }

    public String getWeightunit() {
        return weightunit;
    }

    public void setWeightunit(String weightunit) {
        this.weightunit = weightunit == null ? null : weightunit.trim();
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade == null ? null : grade.trim();
    }

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getIntime() {
        return intime;
    }

    public void setIntime(Date intime) {
        this.intime = intime;
    }

    public Integer getComGid() {
        return comGid;
    }

    public void setComGid(Integer comGid) {
        this.comGid = comGid;
    }

    public String getReceivername() {
        return receivername;
    }

    public void setReceivername(String receivername) {
        this.receivername = receivername == null ? null : receivername.trim();
    }

    public Integer getComGid2() {
        return comGid2;
    }

    public void setComGid2(Integer comGid2) {
        this.comGid2 = comGid2;
    }

    public String getSupplyname() {
        return supplyname;
    }

    public void setSupplyname(String supplyname) {
        this.supplyname = supplyname == null ? null : supplyname.trim();
    }

    public String getSupplytel() {
        return supplytel;
    }

    public void setSupplytel(String supplytel) {
        this.supplytel = supplytel == null ? null : supplytel.trim();
    }

    public String getBuyplace() {
        return buyplace;
    }

    public void setBuyplace(String buyplace) {
        this.buyplace = buyplace == null ? null : buyplace.trim();
    }

    public String getBuysn() {
        return buysn;
    }

    public void setBuysn(String buysn) {
        this.buysn = buysn == null ? null : buysn.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }
}